/* 把原来 <style>...</style> 里全部 CSS 粘到这里 */
:root {
    --primary-color: #1a6dfc;
    --secondary-color: #00c6ff;
    --success-color: #00d68f;
    --warning-color: #ffaa00;
    --danger-color: #ff3d71;
    --dark-bg: #0f1c3c;
    --card-bg: rgba(26, 43, 85, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}
.dashboard {
    padding: 20px;
    max-width: 1920px;
    margin: 0 auto;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.title {
    font-size: 28px;
    font-weight: bold;
}
.datetime {
    font-size: 18px;
    color: var(--text-secondary);
}
.three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.component {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 300px;
}
.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.component-title {
    font-size: 16px;
    font-weight: bold;
}
.component-icon {
    font-size: 20px;
    color: var(--primary-color);
}
.component-content {
    flex: 1;
    width: 100%;
}
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.kpi-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}
.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.kpi-title {
    font-size: 14px;
    color: var(--text-secondary);
}
.kpi-icon {
    font-size: 20px;
    color: var(--primary-color);
}
.kpi-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}
.kpi-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
}
.positive {
    color: var(--success-color);
}
.negative {
    color: var(--danger-color);
}
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}
th {
    color: var(--text-secondary);
    font-weight: normal;
}
.footer {
    text-align: center;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}